Hi
I have a output schema which includes a <Equivalent> element with several possible options, e.g.
<Product>
<Equivalent>
<Desktops>
<Laptops>
etc.
The XSD looks like this
<xs:element name="VendorCatalog">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="tns:Product" />
etc .....
<xs:element block="substitution" name="Product" type="tns:VendorProduct">
etc .....
<xs:complexType name="VendorProduct" abstract="true">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="PriceInformation">
<xs:complexType>
etc .....
<xs:complexType name="Laptops">
<xs:annotation>
<xs:documentation>Laptops</xs:documentation>
</xs:annotation>
<xs:complexContent mixed="false">
<xs:extension base="VendorProduct">
<xs:sequence>
1. I need to generate XML which starts like this with a xsi:type dependant on a value in the imput XML.
<Product xsi:type="Laptops" ProductCode="PROD123456">
<PriceInformation>
<Price Currency="GBP" UnitOfMeasure="Quantity" Value="9.99"/>
</PriceInformation>
If I deceide that I want to generate a "Laptop", using the BizTalk Mapper - how do I assign a value to Product xsi:type ??
2. The structure Laptops has extension base="VendorProduct"
If I deceide that I want to generate a "Laptop" and I want to generate a field in the VendorProduct structure (eg price), do link to the field Price in the VendorProduct data structure or the Price field in the Laptops data structure?
Or is there an Idiot's guide to mapping to <Equivalent>
Thanks